<?php

class HomeController extends AppController {

    /**
     * This controller does not use a model
     *
     * @var array
     */
    public $uses = array('slider');
    public $helpers = array('Html', 'Js', 'Fancybox.Fancybox');

    public function index() {
        $this->layout = 'avenida';
        $sliders = $this->slider->find('threaded',  array('conditions' => array('is_active' => 1) ));
        $this->set('slider', $sliders);
        //print_r($sliders);
    }

}
